package org.gbis.openbus.db;

import org.gbis.openbus.ComLibRoute;

public class DbManagerBusArriveTest extends ComLibRoute implements Runnable {

	public DbManagerBusArriveTest( int no ) {
		this.no = no;
	}

	public void run() {

		try {
			//this.debug("run... " + this.no );
			DbManagerBusArrive.main(null);
			//this.debug("done running ... " + this.no );
		} catch ( Exception e ) {
			this.debug(e);
		}

	}

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {

		System.out.println( "Hello...." );

		int threadNo = 300;

		Thread [] thread = new Thread[ threadNo ];

		for( int i = 0, iLen = threadNo; i < iLen; i ++ ) {
			thread[ i ] = new Thread( new DbManagerBusArriveTest( i ));
		}

		for( int i = 0, iLen = threadNo; i < iLen; i ++ ) {
			thread[ i ].start();
		}

		System.out.println( "Good bye!" );

	}

	private int no;

}
